package net.sf.nwn.jme3;

import com.jme3.math.Quaternion;




public class KeyQuat 
{
	public Quaternion quat;
    private float key;

    public KeyQuat()
    {
    	quat = new Quaternion();
    }

    public KeyQuat(KeyAxisAngle kaa)
    {
        super();
        set(kaa);
    }

    public void set(KeyAxisAngle kaa)
    {
    	quat = kaa.toQuaternion();
    	
        key = kaa.getKey();
    }

    /**
     * Gets the key.
     * @return Returns a float
     */
    public float getKey()
    {
        return key;
    }

    /**
     * Sets the key.
     * @param key The key to set
     */
    public void setKey(float key)
    {
        this.key = key;
    }

    
    public String toString()
    {
        return key + "  " + quat.getX() + " " + quat.getY() + " " + quat.getZ() + " " + quat.getW();
    }

}
